﻿<UserControl 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="UIPrototyper.ScreenUC"
	x:Name="UserControl"
	Width="108" Height="108" ForceCursor="True">
    <UserControl.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Open" >
                <MenuItem Header="OpenOpen"  Click="MenuItem_Click"/>
                <MenuItem Header="OpenClose" Click="MenuItem_Click"/>
            </MenuItem>
            <MenuItem Header="Close" Click="MenuItem_Click"/>
        </ContextMenu>
    </UserControl.ContextMenu>
    <UserControl.Resources>
        <Storyboard x:Key="mouseEnter">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFB7D3EF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB7D3EF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#99000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectTop" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectBottom" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="mouseLeave">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFB7D3EF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB7D3EF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectMain" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#99000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLowerLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectTop" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectRight" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectBottom" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="mouseEnter2">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="mouseLeave2">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF3399FF"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3399FF"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectUpperLeft" Storyboard.TargetProperty="(UIElement.OpacityMask).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>

    <UserControl.Triggers>
        <EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="UserControl">
            <BeginStoryboard Storyboard="{StaticResource mouseEnter}" x:Name="mouseEnter_BeginStoryboard"/>
        </EventTrigger>
        <EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="UserControl">
            <BeginStoryboard Storyboard="{StaticResource mouseLeave}" x:Name="mouseLeave_BeginStoryboard"/>
        </EventTrigger>
    </UserControl.Triggers>

    <Grid x:Name="LayoutRoot" Focusable="True">
        <Grid x:Name="grid" Focusable="True">
            <Rectangle ForceCursor="True" Fill="AliceBlue" Stroke="Blue"  Margin="4,4,4,4" x:Name="rectBackgroud" RadiusX="5" RadiusY="5" />
            <Label Name="lblScreenName" Content="{Binding Path=Properties.Name}" HorizontalAlignment="Center" VerticalAlignment="Center"/>            
            <Rectangle ForceCursor="True" Fill="#FFFFFFFF" Stroke="#FF000000" OpacityMask="#00000000" x:Name="rectBackground"/>
            <Rectangle ForceCursor="True" Fill="#FFB7D3EF" Stroke="#FF3399FF" Margin="4,4,4,4" x:Name="rectMain" OpacityMask="#00000000" Cursor="Hand" MouseDown="rectMain_MouseDown" MouseUp="rectMain_MouseUp" />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" VerticalAlignment="Top" Height="5" HorizontalAlignment="Left" Width="5" x:Name="rectUpperLeft" OpacityMask="#00000000" Cursor="SizeNWSE" MouseDown="rectUpperLeft_MouseDown" MouseUp="MouseUp"/>
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" VerticalAlignment="Top" Height="5" HorizontalAlignment="Right" Width="5" x:Name="rectUpperRight" OpacityMask="#00000000" Cursor="SizeNESW" MouseDown="rectUpperRight_MouseDown" MouseUp="MouseUp"  />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" VerticalAlignment="Bottom" Height="5" HorizontalAlignment="Left" Width="5" x:Name="rectLowerLeft" OpacityMask="#00000000" Cursor="SizeNESW" MouseDown="rectLowerLeft_MouseDown" MouseUp="MouseUp" />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" VerticalAlignment="Bottom" Height="5" HorizontalAlignment="Right" Width="5" x:Name="rectLowerRight" OpacityMask="#00000000" Cursor="SizeNWSE" MouseDown="rectLowerRight_MouseDown" MouseUp="MouseUp"   />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" VerticalAlignment="Top" Height="5" x:Name="rectTop" OpacityMask="#00000000" Cursor="SizeNS" Margin="51,0,51,0" Width="5" MouseDown="rectTop_MouseDown" MouseUp="MouseUp"  />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" HorizontalAlignment="Left" Width="5" x:Name="rectLeft" OpacityMask="#00000000" Cursor="SizeWE" Margin="0,51,0,51" Height="5" MouseDown="rectLeft_MouseDown" MouseUp="MouseUp"  />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" x:Name="rectRight" OpacityMask="#00000000" Cursor="SizeWE" HorizontalAlignment="Right" Margin="0,51,0,51" Width="5" Height="5" MouseDown="rectRight_MouseDown" MouseUp="MouseUp"   />
            <Rectangle ForceCursor="True" Fill="#FF3399FF" Stroke="#FF3399FF" x:Name="rectBottom" OpacityMask="#00000000" Cursor="SizeNS" Margin="51,0,51,0" VerticalAlignment="Bottom" Height="5" Width="5" MouseDown="rectBottom_MouseDown" MouseUp="MouseUp"   />
        </Grid>
    </Grid>
</UserControl>
